<?php

namespace App\Models\RBAC;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Spatie\Permission\Traits\HasRoles;

class AdminUser extends Authenticatable
{
    use Notifiable, HasRoles;

    const TABLE_NAME = 'member_admin';
//    const TABLE_NAME = 'users';

    protected $table = self::TABLE_NAME;

    public $timestamps = false;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'username',
        'password',
        'tel',
        'email',
        'nickname',
        'add_time',
        'last_login',
        'group_id',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password',
        'remember_token',
    ];

    /****************** Relationship *********************/

    /****************** Attribute *********************/

    /****************** Scope *********************/

    /****************** Function *********************/

}
